<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>skybest Logistics</title>
<link rel="stylesheet" href="/assets/css/adminstyle.css" type="text/css"
	media="all" />

<link href="/assets/css/jquery-ui-1.8.16.custom.css" rel="stylesheet"
	style="text/css" />
<link href="/assets/css/validationEngine.jquery.css" rel="stylesheet"
	style="text/css" />
<script type='text/javascript' src='/assets/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript'
	src='/assets/js/jquery-ui-1.8.20.custom.min.js'></script>
<script type='text/javascript'
	src='/assets/js/jquery.validationEngine-en.js'></script>
<script type='text/javascript'
	src='/assets/js/jquery.validationEngine.js'></script>
<script type='text/javascript' src='/assets/js/jobform.js'></script>
<script type='text/javascript' src='/assets/js/utilities.js'></script>
</head>
<body>
	<div id="errorMessagesDialog" title="Please Fill Up Required Fields"></div>
	<!-- Header -->
	<div id="header">
		<div class="shell">
			<!-- Logo + Top Nav -->

			<div id="top">
				<h1>
					<a href="#">Skybest Logistics Corp.</a>
				</h1>
				<?php
				if($page != 'login'){
					?>
				<div id="top-navigation">
					Welcome <a href="#"><strong>Administrator</strong> </a> <span>|</span>
					<a
						href="<?php echo ADMINBASEURL."users/edit/".$this->session->userdata('user_id'); ?>">Profile
						Settings</a> <span>|</span> <a
						href="<?php echo ADMINBASEURL."admin/logout"; ?>">Log out</a>
				</div>
				<?php
				}
				?>
			</div>

			<!-- End Logo + Top Nav -->

			<!-- Main Nav -->
			<?php
			if($page != 'login'){
				?>

			<div id="navigation">
				<ul>
					<div id="navigation">
						<ul>
							<!--
					<li><a href="<?php //echo ADMINBASEURL;?>dashboard" alt="dashboard" <?php //if($page == 'dashboard') echo 'class="active"';?> ><span>Dashboard</span></a></li>
			s-->
						<?php if($allowed){ ?>
							<li><a href="<?php echo ADMINBASEURL;?>pages" alt="pages"
							<?php if($page == 'pages') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Pages</span> </a></li>
								<?php } ?>
							<li><a href="<?php echo ADMINBASEURL;?>transaction"
								alt="transactions"
								<?php if($page == 'transactions') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Transactions</span> </a></li>
								<?php if($allowed){ ?>
							<li><a href="<?php echo ADMINBASEURL;?>warehouse" alt="warehouse"
							<?php if($page == 'warehouse') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Warehouse</span> </a></li>
								<?php } ?>

								<?php if($allowed){ ?>
							<li><a href="<?php echo ADMINBASEURL;?>container" alt="container"
							<?php if($page == 'container') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Container</span> </a></li>
								<?php } ?>

							<li><a href="<?php echo ADMINBASEURL;?>upload" alt="upload"
							<?php if($page == 'upload_form') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Uploaded Files</span> </a></li>


							<li><a href="<?php echo ADMINBASEURL;?>reports" alt="reports"
							<?php if($page == 'reports') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Export Reports</span> </a></li>

							<li><a href="<?php echo ADMINBASEURL;?>shipper" alt="shipper"
							<?php if($page == 'shipper') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Shipper</span> </a></li>


							<li><a href="<?php echo ADMINBASEURL;?>users" alt="users"
							<?php if($page == 'users') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Users</span> </a></li>

								<?php if($allowed){
									/*
									 <li><a href="<?php echo ADMINBASEURL;?>email" alt="email" <?php if($page == 'email') echo 'class="active"';?> onclick="submitLink(this);"><span>Email Settings</span></a></li>
									 */
								} ?>

								<?php if($allowed){ ?>
							<li><a href="<?php echo ADMINBASEURL;?>logs" alt="logs"
							<?php if($page == 'logs') echo 'class="active"';?>
								onclick="submitLink(this);"><span>Logs</span> </a></li>
								<?php } ?>


						</ul>
					</div>

					<?php
			}
			?>

					<div style="display: none">
						<form action='<?php echo ADMINBASEURL;?>' method='post'
							id="navigationForm">

							<input type="hidden" name="page" id="navDestinationPage"
								value="home">
						
						</form>
					</div>


					<!-- End Main Nav -->
			
			</div>
		</div>